﻿<UserControl
    x:Class="EString.PropertyGrid.PGItemHost"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:EString.PropertyGrid"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:controls="using:EString.Controls"

    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="300"
    d:DesignWidth="400">
    
<Border >
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="*"/>
            </Grid.RowDefinitions>
            <!--<ToggleButton ContentTemplate="{TemplateBinding ContentTemplate}" 
                                                              Content="{TemplateBinding Content}" Margin="{TemplateBinding Padding}"
                                                              Background="#FF252526" Foreground="#FFC500FF" HorizontalAlignment="Stretch" BorderBrush="#FF1D1D1D" BorderThickness="0,0,0,1" HorizontalContentAlignment="Left"/>                                                
                                                <ItemsControl x:Name="ItemsControl" ItemsSource="{Binding GroupItems}" Grid.Row="1"/>-->

            <!--<controls:ExpanderES >
                <controls:ExpanderES.TheContent>
                    <ItemsControl x:Name="ItemsControl" ItemsSource="{Binding Children}" Grid.Row="1"/>
                </controls:ExpanderES.TheContent>
            </controls:ExpanderES>-->
            <!--<StackPanel>
                <ToggleButton Checked="ToggleButton_Checked_1" Unchecked="ToggleButton_Unchecked_1" BorderBrush="{x:Null}" >+</ToggleButton>
                <TextBlock Text="{Binding Name}" Foreground="#FFC12A2A"/>               
                
            </StackPanel>-->
            <ItemsControl x:Name="ItemsControl" ItemsSource="{Binding Children}" Grid.Row="1" Margin="28,0,0,0">
                <ItemsControl.ItemTemplate>
                    <DataTemplate>
                        <local:PGItemHost></local:PGItemHost>
                    </DataTemplate>
                </ItemsControl.ItemTemplate>
            </ItemsControl>

        </Grid>


    </Border>
</UserControl>

